﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GiftsList.aspx.cs"
    Inherits="GiftsList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Inc/Style/Style.css" rel="stylesheet" type="text/css" />


    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/Module/Common/Common.js" type="text/javascript"></script>

    <script src="../Scripts/jquery-common.js" type="text/javascript"></script>

    <link href="../Inc/artDialogskins/blue.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery.artDialog.basic.js" type="text/javascript"></script>

    <script src="../Scripts/Module/Activity/GiftList.js" type="text/javascript"></script>
</head>
<body>
    <form id="frmGoodsClass" runat="server">
        <table style="width: 100%; height: 100%; word-wrap: break-word;" cellspacing="7">
            <tr>
                <td colspan="2" style="width: 100%;">
                    <div class="system_Info">

                        <div class="system_Top">
                            <div class="user_regist_title">
                                <asp:Literal runat="server" ID="ltlTitle"></asp:Literal>
                            </div>
                        </div>
                        <!--奖励创建-->
                        <div id="dvGoodsClassInfo" style="display: none">
                            <table class="tableStyle" cellspacing="0" cellpadding="2" style="width: 400px; margin: auto">
                                <tr>
                                    <td class="tableStyle_left">
                                        <span style="color: #ff4800; vertical-align: middle">*</span>奖励类型：
                                    </td>
                                    <td class="tableStyle_right">
                                        <select name="select" id="radioGiftType" runat="server" class="selectWidth" style="width: 150px;">
                                            <option value="积分">积分</option>
                                            <option value="储值">储值</option>
                                            <option value="消费返利">消费返利</option>
                                            <option value="储值返利">储值返利</option>
                                            <option value="分享">分享奖励</option>
                                            <option value="推广">推广奖励</option>
                                            <option value="小礼品">小礼品</option>
                                        </select>

                                    </td>
                                </tr>

                                <tr>
                                    <td colspan="4" style="text-align: center">
                                        <input id="btnGiftsClassSave" type="button" value="下 一 步" class="buttonColor" />
                                        <input type="hidden" id="txtGoodsClassID" />
                                        <input type="hidden" id="txtClassShopID" />
                                    </td>
                                </tr>
                            </table>
                        </div>


                        <!----------------------六种类型的奖励，没有代金券因为代金券不在这里加----------------------->
                        <!--1.积分-->
                        <div id="ScorePart" style="display: none">
                            <table class="tableStyle" cellspacing="0" cellpadding="2" style="width: 400px; margin: auto">
                                <tr>
                                    <td class="tableStyle_left">
                                        <span style="color: #ff4800; vertical-align: middle">*</span>积分数量：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtScoreNum" type="text" class="input_txt border_radius" style="width: 300px;" />
                                        <input id="txtScoreID" type="hidden" value="" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4" style="text-align: center">
                                        <input id="btnScoreClassSave" type="button" value="保   存" class="buttonColor" />&nbsp;
                                   
                                        <%--<input id="btnScoreClassReset" type="button" class="buttonRest" value="重   置" />--%>
                                    </td>
                                </tr>
                            </table>
                        </div>

                        <!--2.储值-->
                        <div id="MoneyPart" style="display: none">
                            <table class="tableStyle" cellspacing="0" cellpadding="2" style="width: 400px; margin: auto">
                                <tr>
                                    <td class="tableStyle_left">
                                        <span style="color: #ff4800; vertical-align: middle">*</span>储值金额：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtMoneyNum" type="text" class="input_txt border_radius" style="width: 300px;" />
                                        <input id="txtMoneyID" type="hidden" value="" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4" style="text-align: center">
                                        <input id="btnMoneyClassSave" type="button" value="保   存" class="buttonColor" />&nbsp;
                                   
                                        <%--<input id="btnMoneyClassReset" type="button" class="buttonRest" value="重   置" />--%>
                                    </td>
                                </tr>
                            </table>
                        </div>

                        <!--3.消费返利-->
                        <div id="RebatePart" style="display: none">
                            <table class="tableStyle" cellspacing="0" cellpadding="2" style="width: 400px; margin: auto">
                                <tr>
                                    <td class="tableStyle_left">
                                        <span style="color: #ff4800; vertical-align: middle">*</span>一级返利率：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtRebateNum1" type="text" class="input_txt border_radius" style="width: 200px;" />%
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableStyle_left">二级返利率：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtRebateNum2" type="text" class="input_txt border_radius" style="width: 200px;" />%
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableStyle_left">三级返利率：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtRebateNum3" type="text" class="input_txt border_radius" style="width: 200px;" />%
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableStyle_left">
                                        <span style="color: #ff4800; vertical-align: middle">*</span>有效期：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtRebateLimit" type="text" class="input_txt border_radius" style="width: 200px;" />天
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4" style="text-align: center">
                                        <input id="txtRebateID" type="hidden" value="" />
                                        <input id="btnRebateClassSave" type="button" value="保   存" class="buttonColor" />&nbsp;
                                   
                                        <%--<input id="btnRebateClassReset" type="button" class="buttonRest" value="重   置" />--%>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <%--储值返利--%>
                        <div id="MoneyRebatePart" style="display: none">
                            <table class="tableStyle" cellspacing="0" cellpadding="2" style="width: 400px; margin: auto">
                                <tr>
                                    <td class="tableStyle_left">
                                        <span style="color: #ff4800; vertical-align: middle">*</span>一级返利率：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtMoneyRebateNum1" type="text" class="input_txt border_radius" style="width: 200px;" />%
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableStyle_left">二级返利率：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtMoneyRebateNum2" type="text" class="input_txt border_radius" style="width: 200px;" />%
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableStyle_left">三级返利率：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtMoneyRebateNum3" type="text" class="input_txt border_radius" style="width: 200px;" />%
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableStyle_left">
                                        <span style="color: #ff4800; vertical-align: middle">*</span>有效期：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtMoneyRebateLimit" type="text" class="input_txt border_radius" style="width: 200px;" />天
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4" style="text-align: center">
                                        <input id="txtMoneyRebateID" type="hidden" value="" />
                                        <input id="btnMoneyRebateClassSave" type="button" value="保   存" class="buttonColor" />&nbsp;
                                   
                                        <%--<input id="btnRebateClassReset" type="button" class="buttonRest" value="重   置" />--%>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <!--4.推广-->
                        <div id="ExtendPart" style="display: none">
                            <table class="tableStyle" cellspacing="0" cellpadding="2" style="width: 400px; margin: auto">
                                <tr>
                                    <td class="tableStyle_left">积分数量：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtExtendScore" type="text" class="input_txt border_radius" style="width: 200px;" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableStyle_left">储值金额：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtExtendMoney" type="text" class="input_txt border_radius" style="width: 200px;" />
                                    </td>
                                </tr>
                                <%--                                <tr>
                                    <td class="tableStyle_left">微信红包：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtExtendPocket" type="text" class="input_txt border_radius" style="width: 200px;" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableStyle_left">
                                        <span style="color: #ff4800; vertical-align: middle">*</span>频率限制：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtExtendLimit" type="text" class="input_txt border_radius" style="width: 200px;" />人/天
                                    </td>
                                </tr>--%>
                                <tr>
                                    <td class="tableStyle_left">
                                        <span style="color: #ff4800; vertical-align: middle">*</span>有效期：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtExtendLimitValidity" type="text" class="input_txt border_radius" style="width: 200px;" />天
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4" style="text-align: center">
                                        <input id="txtExtendID" type="hidden" value="" />
                                        <input id="btnExtendClassSave" type="button" value="保   存" class="buttonColor" />&nbsp;
                                   
                                        <%--<input id="btnExtendClassReset" type="button" class="buttonRest" value="重   置" />--%>
                                    </td>
                                </tr>
                            </table>
                        </div>

                        <!--5.分享-->
                        <div id="SharePart" style="display: none">
                            <table class="tableStyle" cellspacing="0" cellpadding="2" style="width: 400px; margin: auto">
                                <tr>
                                    <td class="tableStyle_left">积分数量：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtShareScore" type="text" class="input_txt border_radius" style="width: 200px;" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableStyle_left">储值金额：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtShareMoney" type="text" class="input_txt border_radius" style="width: 200px;" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableStyle_left">微信红包：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtSharePocket" type="text" class="input_txt border_radius" style="width: 200px;" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableStyle_left">
                                        <span style="color: #ff4800; vertical-align: middle">*</span>频率限制：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtShareLimit" type="text" class="input_txt border_radius" style="width: 200px;" />次/人/天
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableStyle_left">
                                        <span style="color: #ff4800; vertical-align: middle">*</span>有效期：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtShareLimitValidity" type="text" class="input_txt border_radius" style="width: 200px;" />天
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4" style="text-align: center">
                                        <input id="txtShareID" type="hidden" value="" />
                                        <input id="btnShareClassSave" type="button" value="保   存" class="buttonColor" />&nbsp;
                                   
                                        <%--<input id="btnShareClassReset" type="button" class="buttonRest" value="重   置" />--%>
                                    </td>
                                </tr>
                            </table>
                        </div>

                        <!--6.小礼品-->
                        <div id="PresentPart" style="display: none">
                            <table class="tableStyle" cellspacing="0" cellpadding="2" style="width: 400px; margin: auto">
                                <tr>
                                    <td class="tableStyle_left">礼品名称：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtPresentName" type="text" class="input_txt border_radius" style="width: 200px;" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tableStyle_left">兑换有效期（天）：
                                    </td>
                                    <td class="tableStyle_right">
                                        <input id="txtPresentLimit" type="text" class="input_txt border_radius" style="width: 200px;" />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4" style="text-align: center">
                                        <input id="txtPresentID" type="hidden" value="" />
                                        <input id="btnPresentClassSave" type="button" value="保   存" class="buttonColor" />&nbsp;
                                   
                                        <%--<input id="btnPresentClassReset" type="button" class="buttonRest" value="重   置" />--%>
                                    </td>
                                </tr>
                            </table>
                        </div>



                        <div class="user_List_All">
                            <div class="user_List_top">
                                <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#434343" class="tableStyle">
                                    <tr style="color: #333333; background-color: #F7F6F3;">
                                        <td class="user_List_styleLeft">快捷操作：
                                        </td>
                                        <td class="user_List_styleRight">
                                            <div class="user_List_Button">
                                                <input id="btnGiftsClassAdd" type="button" value="新增奖励" class="common_Button" runat="server" />
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </div>

                            <table class="table-style table-hover user_List_txt">
                                <asp:Repeater runat="server" ID="gvwGoodsClass">
                                    <HeaderTemplate>
                                        <thead class="thead">
                                            <tr class="th">
                                                <th>序号                                                </th>

                                                <th>类型
                                                </th>
                                                <th>内容
                                                </th>
                                                <th>状态
                                                </th>
                                                <th>操作</th>
                                            </tr>
                                        </thead>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tr class="td">
                                            <td>
                                                <asp:Label ID="lblNumber" runat="server" Text=""><%#Eval("row").ToString() %></asp:Label>
                                            </td>

                                            <td style="text-align: left"><%#Eval("type").ToString() %>
                                            </td>
                                            <td style="text-align: left"><%#Eval("value").ToString() %>
                                            </td>
                                            <td style="text-align: left">
                                                <%# Convert.ToInt32(Eval("Status"))==1?"开启":"关闭" %>
                                            </td>
                                            <td class="listtd" style="width: 90px;">
                                                <a href='#' onclick='<%# string.Format(" btnOnOffActivity(\"{0}\",\"{1}\",\"{2}\")",Eval("ID"),Eval("type"),Eval("Status")) %>'>
                                                    <img src="../images/Gift/system.png" alt="修改状态" title="修改状态" /></a>
                                                <a href="#" onclick='<%# string.Format(" btnGiftsListEdit(\"{0}\",\"{1}\")",Eval("ID"),Eval("type")) %>' id="btnGoodsClassEdit" runat="server">
                                                    <img src="../images/Gift/eit.png" alt="编辑" title="编辑" /></a>

                                                <a href="#" onclick='<%# string.Format("return btnGiftsListDel(\"{0}\",\"{1}\",\"{2}\")",Eval("ID"),Eval("type"),Eval("type").ToString()+":"+Eval("value")) %>' id="btnGiftsListDel" runat="server">
                                                    <img src="../images/Gift/del.png" alt="删除" title="删除" /></a>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </table>

                            <div class="user_List_page">
                                <table style="width: 100%" id="tabPager">
                                    <tr>
                                        <td>
                                            <span id="spPageSize">&nbsp;每页记录数：</span>
                                            <asp:DropDownList ID="drpPageSize" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpPageSize_SelectedIndexChanged">
                                                <asp:ListItem>10</asp:ListItem>
                                                <asp:ListItem>20</asp:ListItem>
                                                <asp:ListItem>30</asp:ListItem>
                                                <asp:ListItem>40</asp:ListItem>
                                                <asp:ListItem>50</asp:ListItem>
                                            </asp:DropDownList>
                                            <webdiyer:AspNetPager ID="NetPagerParameter" runat="server" AlwaysShow="True" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                                                CssClass="paginator" CurrentPageButtonClass="cpb" FirstPageText="首页" LastPageText="尾页"
                                                NextPageText="下一页" OnPageChanging="NetPagerParameter_PageChanging" PrevPageText="上一页"
                                                ShowPageIndexBox="Always" PageSize="10" LayoutType="Table" PageIndexBoxType="DropDownList"
                                                ShowCustomInfoSection="Left" CustomInfoClass="paginator" CustomInfoSectionWidth="300px"
                                                SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" Direction="LeftToRight"
                                                HorizontalAlign="Right">
                                            </webdiyer:AspNetPager>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
